﻿using Avalon.Core.Data;
using Avalon.Core.Providers;
using System.Web.Mvc;

namespace Avalon.Core.MVC {
    public class BaseGenericEntityController<TModel> : Controller
        where TModel : class, IEntity, new() {
        protected override IActionInvoker CreateActionInvoker() {
            IActionProvider provider = ProviderContainer.Current.ActionProvider;
            return provider.GetActionDescriptor().ActionInvoker;
        }
    }
}
